export const USER_TOKEN_PREFIX = 'user:token:';
export const USER_CHANNEL_PREFIX = 'channel:';
export const GROUP_CHANNEL_PREFIX = 'group:';

export function getRedisUserTokenKey(token) {
  return `${USER_TOKEN_PREFIX}${token}`;
}

export function getRedisUserChannelKey(channelId) {
  return `${USER_CHANNEL_PREFIX}${channelId}`;
}

export function getRedisGroupChannelKey(groupId) {
  return `${GROUP_CHANNEL_PREFIX}${groupId}`;
}
